package com.example.lenovo.findmyclass.Menu.Reservation;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;

import com.example.lenovo.findmyclass.MainActivity;
import com.example.lenovo.findmyclass.R;

public class ReservationClass2 extends Activity {
    private Button back,left,next;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_reservation_class2);
        back = (Button) findViewById(R.id.back);
        left = findViewById(R.id.left);
        next=findViewById(R.id.next);
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent backIntent = new Intent(ReservationClass2.this, MainActivity.class);
                startActivity(backIntent);
            }
        });
        left.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent left = new Intent(ReservationClass2.this,ReservationClass1.class);
                startActivity(left);
            }
        });
        next.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent next = new Intent(ReservationClass2.this,ReservationClass3.class);
                startActivity(next);
            }
        });
    }
}
